package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;


@Mapper
public interface UserMapper {

    //根据openid查询数据库中的用户
   @Select("select * from user where openid = #{openid}")
   public User wxLogin(String openid);

   //将用户信息插入数据库中
    public void insertUser (User user);

    Integer getUserCount(Map map);
}
